package com.marcowu.study.spb.admclient.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;

public class TestScheduleTask {

  private static Logger logger = LoggerFactory.getLogger(TestScheduleTask.class);

  @Scheduled(cron = "0/5 * * * * *")
  public void schedule() {
    logger.info("=============> info log, " + System.currentTimeMillis());
    logger.warn("=============> warn log, " + System.currentTimeMillis());
  }

}
